<?php
/**
 *  view: monirot/monirto_home.php
 */
?>
<h1><?php echo lang('monitor'); ?></h1>
<form method="post" id="form-filter" name='form-dialogs-filter' action="" style="float:left; width: 20%; display: table; margin-right: 20px;" >

    <fieldset class="ui-widget-content ui-corner-all field_filter" >
        <legend class="ui-widget-content ui-corner-all"><?= lang('filter') ?></legend>
        <div style="display:table;" id="monitor_filter">



            <label ><?= lang('last_hour') ?>: </label>
            <input type="radio" name="filter[interval]" value="1"  id="last_hour" /><br/>
            <label ><?= lang('last_six_hours') ?>: </label>
            <input type="radio" name="filter[interval]" value="6" id="last_six_hours" /><br/>
            <label ><?= lang('last_twelve_hours') ?>: </label>
            <input type="radio"  name="filter[interval]" value="12" id="last_twelve_hours" /><br/>
            <label ><?= lang('last_day') ?>: </label>
            <input type="radio" name="filter[interval]" value="24" id="last_day" /><br/>

            
            <label ><?= lang('time_interval') ?>: </label>

            <input type="radio" name="filter[interval]" value="0" id="time_interval" /><br/>
            <label ><?= lang('date_from') ?>: </label>
            <input type="text" style="width:100px;" name="filter[date_from]" id="date_from" placeholder="<?php echo lang('date_from') ?>" disabled="disabled" class="text date_picker ui-widget-content ui-corner-all"/><br/>
            <label ><?= lang('date_to') ?>: </label>
            <input type="text" style="width:100px;" name="filter[date_to]" id="date_to" placeholder="<?php echo lang('date_to') ?>" disabled="disabled" class="text date_picker ui-widget-content ui-corner-all"/><br/>
            <label ><?= lang('time_from') ?>: </label>
            <input type="number" name="filter[time_from]" min="00" max="24" placeholder="0h" disabled="true" style="width:50px; height: 18px;" id="time_from" class="text ui-widget-content ui-corner-all"/> <br/>

            <label ><?= lang('time_to') ?>: </label>

            <input type="number" name="filter[time_to]" min="00" max="24" placeholder="24h" disabled="true" style="width:50px; height: 18px;" id="time_to" class="text ui-widget-content ui-corner-all"/> <br/>



            <br/>
            <label> &nbsp; </label>

        </div>
        <input type="button" name="filter_dialogs_submit" id="filter_submit" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all" value="<?php echo lang('search'); ?>" />
        <input type="reset" name="filter_dialogs_reset" id="filter_reset" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all" value="<?php echo lang('reset'); ?>" />
    </fieldset>
</form>
<br/>
<fieldset class="ui-widget-content ui-corner-all" style='width: 50%;'>
    <legend class="ui-widget-content ui-corner-all"><?= lang('messages') ?></legend>
    <a href="javascript:void(null)" id="update_monitor" alt="<?= lang('refresh_messages') ?>" ><img src="<?= base_url() ?>img/icons/Refresh.png" title="<?= lang('refresh_messages') ?>" style="float: right;"/></a>
    <table id="monitor" class='dialog_table' width='100%' cellpadding=3px cellspacing=0>

        <tbody >
            <?php
            $this->load->view('monitor/monitor_list');
            ?>
        </tbody>

    </table>
</fieldset>      

<div id="dialog-user" class="hide" title="<?php echo lang('term_user'); ?>"></div>